import os
import tensorflow as tf
print(tf.__version__)



#
# def print_directory_structure(directory, exclude_dirs=['datasets', 'logs','VOCdevkit','img_out']):
#     for root, dirs, files in os.walk(directory):
#         # 过滤掉不需要的目录
#         dirs[:] = [d for d in dirs if d not in exclude_dirs]
#
#         # 打印目录路径
#         print(root)
#         # 打印子目录
#         for d in dirs:
#             print(f"  {os.path.join( d)}")
#         # 打印文件
#         for f in files:
#             print(f"  {os.path.join( f)}")
#
#
# # 设置你的项目根目录
# project_root = 'E:\\BaiduNetdiskDownload\\Sar-unet-tf2'  # 请确保使用双反斜杠
# print_directory_structure(project_root)